#include "PLException.h"

using std::string;

/**
  *	Constructs a new PLException object with a message that contains further
  * details about the occurred error
  *
  * @param message message that contains further details about the occurred error
  */
PLException::PLException( const string &message )
{
	mMessage = message;
}

/**
  *	Returns a const pointer to the char array containing the message with
  * further details about the occurred error
  *
  * @return const pointer to the char array containing the message with further details about the occurred error
  */
const char *PLException::what() const
{
	return mMessage.c_str();;
}